#include<stdio.h>

int main(int argc,char *argv[]){
	float input=0;
	if (argc != 2)
		return 1;
	input=atoi(argv[1]);
	double output=32+input*1.8;
	printf("%.1f\n",output);
	return 0;
}
